package cre.sample.test.freemark;

import java.io.File;
import java.io.IOException;

import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;

public class FreeMarkerUtil {

	public static Configuration getConfiguration(String path) throws IOException {
		Configuration configuration = new Configuration();
		configuration.setDirectoryForTemplateLoading(new File(path));
		configuration.setObjectWrapper(new DefaultObjectWrapper());
		return configuration;
	}

}
